package MicroSpring.beanPostProcessor;

public interface BeanPostProcessor {

     /*
        初始化之前执行，这里返回对象会替换原本的bean,如@PostConstruct,@ConfigurationProperties
     */

     default Object postProcessBeforeInitialization(Object bean, String beanName){return bean;};


     /*
        初始化之后执行，这里返回对象会替换原本的bean,如代理增强
     */

     default Object postProcessAfterInitialization(Object bean, String beanName){return bean;};
}
